const express = require('express')

const router = express.Router()

const checkToken = require('../../../middleware/checkToken')

const {create, getall} = require('../../../controller/order')

// 订单表相关请求就在这里处理
router.post('/create', checkToken, create)

router.get('/getall/:userId', checkToken, getall)

module.exports = router